package timtest.android.project;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.Path.Direction;
import android.os.Handler;
import android.view.View;

public class DrawView extends View 
{
	DrawView mDrawView;
	Canvas canvas;
    Paint paint = new Paint();
    Path path = new Path();
	float x;
	float y;
	long counter;
    public DrawView(Context context) 
    {
        super(context);  
        paint.setColor(Color.BLUE);
        paint.setStyle(Paint.Style.FILL);
        paint.setAntiAlias(true);
    }
    @Override
    public void onDraw(Canvas canvas)
    {
    	x += 0.2;
    	y += 0.2; 
		paint.setStyle(Paint.Style.STROKE);
		paint.setStrokeWidth(3);
		Path path = new Path();
		path.moveTo(100, 10);
		path.quadTo(100, 100, x, y);
		canvas.drawPath(path, paint);
    }
}